package o;

import com.google.gson.JsonIOException;
import com.google.gson.JsonParseException;
import com.google.gson.JsonSyntaxException;
import java.io.IOException;
import java.io.Writer;

public final class auc {
    public static ath ॱ(auy o_auy) throws JsonParseException {
        Object obj = 1;
        try {
            o_auy.ʻ();
            obj = null;
            return (ath) aup.ᐨ.ˏ(o_auy);
        } catch (Throwable e) {
            if (obj != null) {
                return atl.ˎ;
            }
            throw new JsonSyntaxException(e);
        } catch (Throwable e2) {
            throw new JsonSyntaxException(e2);
        } catch (Throwable e22) {
            throw new JsonIOException(e22);
        } catch (Throwable e222) {
            throw new JsonSyntaxException(e222);
        }
    }

    public static void ˎ(ath o_ath, aux o_aux) throws IOException {
        aup.ᐨ.ˎ(o_aux, o_ath);
    }

    public static Writer ˊ(Appendable appendable) {
        return appendable instanceof Writer ? (Writer) appendable : new c(appendable);
    }
}
